<!-- 修改设计师信息 完结-->
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<!DOCTYPE html>

<html>

	<head>
		<meta charset="utf-8">
		<script type="text/javascript" src="${pageContext.request.contextPath }/js/common/jquery-1.9.1.min.js"></script>
		<script type="text/javascript" src="${pageContext.request.contextPath }/js/common/jquery.validate.min.js"></script>
		<script type="text/javascript" src="${pageContext.request.contextPath }/js/designer/designer_changeInfo.js"></script>
		<script type="text/javascript" src="${pageContext.request.contextPath }/js/common/upLoadImage.js"></script>
		<link href="${pageContext.request.contextPath}/css/designer/designer_changeInfo.css" rel="stylesheet">
		<link href="${pageContext.request.contextPath}/css/bootstrap/bootstrap.min.css" rel="stylesheet">
		<title></title>
	</head>

	<body>
		<form action="${pageContext.request.contextPath}/designer/changeInfo.do" method="post" enctype="multipart/form-data" class="addForm">
			<div class="image">
				<div id="preview">
					<img id="imghead" border=0 src="${pageContext.request.contextPath}/${designerInfo.photo_link}" width="180px" height="180px" />
				</div>
				<input type="file" name="photo_pic" onchange="previewImage(this)" />
			</div>
			<div class="info">
				<div class="addPhoto">
					<span>用户名：</span>&nbsp;&nbsp;&nbsp;&nbsp;
					<input type="text" name="user.username" disabled="disabled" value="${username}"
					style="width:201px" />
					<input type="hidden" name="id" value="${designer_id }">
					<input type="hidden" name="user_id" value="${user_id }">
					<input type="hidden" name="photo_link" value="${designerInfo.photo_link}">
				</div>
				<div class="addPhoto">
					<span>姓名：</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
					<input type="text" class="input" name="name" value="${designerInfo.name}" />
				</div>
				<span class="designerSex" style="display:none">${designerInfo.sex}</span>
				<div class="addPhoto">
					<span>性别：</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
					<input name="sex" type="radio" value="0" class="sex"/>男
					<input name="sex" type="radio" value="1" class="sex"/>女
				</div>
				<div class="addPhoto" id="date">
					<span>出生日期：</span>&nbsp;
					<input  type="text" name="birthday"  placeholder="例:1993-10-10" value="<fmt:formatDate value="${designerInfo.birthday}" pattern="yyyy-MM-dd"/>"/>
				</div>
			</div>
			<div class="c">
				<div class="c1">
					<div class="addPhoto">
						<span>邮箱地址：</span>&nbsp;
						<input type="text" class="input" name="email" value="${designerInfo.user.email}"style="width: 160px;" />
					</div>
					<div class="addPhoto">
						<span>学历：</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
						<select name="education_code" style="width: 107px;">
						
							<option value="1">博士生</option>
							<option value="2">研究生</option>
							<option value="3">本科生</option>
							<option value="4">大专生</option>
							<option value="5">大专以下</option>
						</select>
					</div>
				</div>
				<div class="c2">
				    <div class="addPhoto">
						<span>手机：</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
						<input type="text" class="input" name="phone" value="${designerInfo.phone}" style="width: 160px;" />
					</div>
					
					<div class="addPhoto">
						<span>专业：</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
						<input type="text" class="input" name="major" value="${designerInfo.major }" style="width: 160px;" 
							placeholder="例:计算机信息专业"/>
					</div>
				</div>
				<div class="c3">
				    <div class="addPhoto">
						<span>毕业院校：</span>
						<input type="text" class="input" name="graduate_college" value="${designerInfo.graduate_college}" style="width: 160px;" />
					</div>
					<div class="addPhoto">
						<span>设计标签：</span>
						<div style="width: 550px;">
						<c:if test="${dic_designerLabels!=null }">
							<c:forEach items="${dic_designerLabels}" var="dic_designerLabels">
						   <input value="${dic_designerLabels.code}" name = "designerLabels" type="checkbox" style="vertical-align:middle">
						   <span style='vertical-align:middle;' class="dic_designerLabels">${dic_designerLabels.value}</span>
							</c:forEach>
						</c:if>
						
						</div>
						<div style="display:none">
						<c:if test="${designerLabels!=null}">
						<c:forEach items="${designerLabels}" var="designerLabels" varStatus="status">
						   <input value='${designerLabels.label_code}'  type='checkbox' style='vertical-align:middle;'>
						   <span style='vertical-align:middle;' class="designerLabels">${designerLabels.dictionary.value}</span>
						</c:forEach> 
						</c:if>
						
						</div>
					</div>
				</div>
				<div class="addPhoto" style="position: relative;left: 14px;top: -109px;">
					<button class="btn btn-info" value="submit">提交</button>
				</div>
			</div>

		</form>
	</body>

</html>